import { createRouter, createWebHistory } from 'vue-router'
// import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home',
      name: 'home',
      component: import('../views/home.vue'),
      redirect: '/',
      children: [
        {
          path: '/',
          name: 'HomeView',
          component: () => import('../views/HomeView.vue')
        },
        {
          path: '/myKe',
          name: 'myKe',
          component: () => import('../views/myKe.vue')
        },
        {
          path: '/miaoWu',
          name: 'miaoWu',
          component: () => import('../views/miaoWu.vue')
        },
        {
          path: '/gongJu',
          name: 'gongJu',
          component: () => import('../views/gongJu.vue')
        },
        {
          path: '/my',
          name: 'my',
          component: () => import('../views/my.vue')
        }
      ]
    },
    {
      path: '/search',
      name: 'search',
      component: () => import('../views/search.vue')
    },
    {
      path: '/sou',
      name: 'sou',
      component: () => import('../views/sou.vue')
    },
    {
      path: '/zhiBoXq',
      name: 'zhiBoXq',
      component: () => import('../views/zhiBoXq.vue')
    },
    {
      path: '/xq',
      name: 'xq',
      component: () => import('../views/xq.vue')
    },
    {
      path: '/teacherD',
      name: 'teacherD',
      component: () => import('../views/teacherD.vue')
    },
    {
      path: '/allTeacher',
      name: 'allTeacher',
      component: () => import('../views/allTeacher.vue')
    },
    {
      path: '/zc',
      name: 'zc',
      component: () => import('../views/zc.vue')
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('../views/login.vue')
    },
    {
      path: '/CZmm',
      name: 'CZmm',
      component: () => import('../views/CZmm.vue')
    },
    {
      path: '/geRenXx',
      name: 'geRenXx',
      component: () => import('../views/geRenXx.vue')
    },
    {
      path: '/soucang',
      name: 'soucang',
      component: () => import('../views/soucang.vue')
    },
    {
      path: '/order',
      name: 'order',
      component: () => import('../views/order.vue')
    },
    {
      path: '/kecheng',
      name: 'kecheng',
      component: () => import('../views/kecheng.vue')
    },
    {
      path: '/dizhi',
      name: 'dizhi',
      component: () => import('../views/dizhi.vue')
    },
    {
      path: '/sezhi',
      name: 'sezhi',
      component: () => import('../views/sezhi.vue')
    },
    {
      path: '/myVip',
      name: 'myVip',
      component: () => import('../views/myVip.vue')
    },
    {
      path: '/youHui',
      name: 'youHui',
      component: () => import('../views/youHui.vue')
    },
    {
      path: '/wenTi',
      name: 'wenTi',
      component: () => import('../views/wenTi.vue')
    },
    {
      path: '/querendingd',
      name: 'querendingd',
      component: () => import('../views/querendingd.vue')
    },
    {
      path: '/xiangxixx',
      name: 'xiangxixx',
      component: () => import('../views/xiangxixx.vue')
    },
    {
      path: '/xiaoxi',
      name: 'xiaoxi',
      component: () => import('../views/xiaoxi.vue')
    },
    {
      path: '/kectz',
      name: 'kectz',
      component: () => import('../views/kectz.vue')
    },
    {
      path: '/xitz',
      name: 'xitz',
      component: () => import('../views/xitz.vue')
    },
    {
      path: '/dingtz',
      name: 'dingtz',
      component: () => import('../views/dingtz.vue')
    },
    {
      path: '/guanyuwom',
      name: 'guanyuwom',
      component: () => import('../views/guanyuwom.vue')
    },
    {
      path: '/gozhaunye',
      name: 'gozhaunye',
      component: () => import('../views/gozhaunye.vue')
    },
    {
      path: '/CZmma',
      name: 'CZmma',
      component: () => import('../views/CZmma.vue')
    },
    {
      path: '/mykkec',
      name: 'mykkec',
      component: () => import('../views/mykkec.vue')
    },
    {
      path: '/xuexijilu',
      name: 'xuexijilu',
      component: () => import('../views/xuexijilu.vue')
    },
    {
      path: '/xuexiziliao',
      name: 'xuexiziliao',
      component: () => import('../views/xuexiziliao.vue')
    },
    {
      path: '/allKe',
      name: 'allKe',
      component: () => import('../views/allKe.vue')
    },
    {
      path: '/genghSJ',
      name: 'genghSJ',
      component: () => import('../views/genghSJ.vue')
    },
    {
      path: '/quegenghSJ',
      name: 'quegenghSJ',
      component: () => import('../views/quegenghSJ.vue')
    },
    {
      path: '/xuexidh',
      name: 'xuexidh',
      component: () => import('../views/xuexidh.vue')
    },
    {
      path: '/adddizhi',
      name: 'adddizhi',
      component: () => import('../views/adddizhi.vue')
    },
    {
      path: '/toux',
      name: 'toux',
      component: () => import('../views/toux.vue')
    },
    {
      path: '/editMyinfo',
      name: 'editMyinfo',
      component: () => import('../views/editMyinfo.vue')
    },
    {
      path: '/editSex',
      name: 'editSex',
      component: () => import('../views/editSex.vue')
    },
    {
      path: '/xuanzexuexiao',
      name: 'xuanzexuexiao',
      component: () => import('../views/xuanzexuexiao.vue')
    },
    {
      path: '/baokaozhuanye',
      name: 'baokaozhuanye',
      component: () => import('../views/baokaozhuanye.vue')
    }
  ]
})

export default router
